
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <script src="iconfont.js"></script>

    <style type="text/css">
        .icon {
          /* 通过设置 font-size 来改变图标大小 */
          width: 1em; height: 1em;
          /* 图标和文字相邻时，垂直对齐 */
          vertical-align: -0.15em;
          /* 通过设置 color 来改变 SVG 的颜色/fill */
          fill: currentColor;
          /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
             normalize.css 中也包含这行 */
          overflow: hidden;
        }

    </style>
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-information-fail"></use>
                    </svg>
                    <div class="name">失败</div>
                    <div class="fontclass">#bcui-icon-information-fail</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-icon"></use>
                    </svg>
                    <div class="name">提示</div>
                    <div class="fontclass">#bcui-icon-icon</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-topic1"></use>
                    </svg>
                    <div class="name">topic</div>
                    <div class="fontclass">#bcui-icon-topic1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-refresh-single"></use>
                    </svg>
                    <div class="name">refresh</div>
                    <div class="fontclass">#bcui-icon-refresh-single</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-setting-more"></use>
                    </svg>
                    <div class="name">点点</div>
                    <div class="fontclass">#bcui-icon-setting-more</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-shoucang"></use>
                    </svg>
                    <div class="name">收藏</div>
                    <div class="fontclass">#bcui-icon-shoucang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-topic"></use>
                    </svg>
                    <div class="name">日志</div>
                    <div class="fontclass">#bcui-icon-topic</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-jia"></use>
                    </svg>
                    <div class="name">加</div>
                    <div class="fontclass">#bcui-icon-jia</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-jian"></use>
                    </svg>
                    <div class="name">减号</div>
                    <div class="fontclass">#bcui-icon-jian</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-calendar"></use>
                    </svg>
                    <div class="name">calendar</div>
                    <div class="fontclass">#bcui-icon-calendar</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-check"></use>
                    </svg>
                    <div class="name">check</div>
                    <div class="fontclass">#bcui-icon-check</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-alert"></use>
                    </svg>
                    <div class="name">alert</div>
                    <div class="fontclass">#bcui-icon-alert</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-blocks"></use>
                    </svg>
                    <div class="name">blocks</div>
                    <div class="fontclass">#bcui-icon-blocks</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-activated"></use>
                    </svg>
                    <div class="name">activated</div>
                    <div class="fontclass">#bcui-icon-activated</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-chevron-right"></use>
                    </svg>
                    <div class="name">chevron-right</div>
                    <div class="fontclass">#bcui-icon-chevron-right</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-chevron-left"></use>
                    </svg>
                    <div class="name">chevron-left</div>
                    <div class="fontclass">#bcui-icon-chevron-left</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-calculator"></use>
                    </svg>
                    <div class="name">calculator</div>
                    <div class="fontclass">#bcui-icon-calculator</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-cloud"></use>
                    </svg>
                    <div class="name">cloud</div>
                    <div class="fontclass">#bcui-icon-cloud</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-chevron-top"></use>
                    </svg>
                    <div class="name">chevron-top</div>
                    <div class="fontclass">#bcui-icon-chevron-top</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-collapse"></use>
                    </svg>
                    <div class="name">collapse</div>
                    <div class="fontclass">#bcui-icon-collapse</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-chevron-bottom"></use>
                    </svg>
                    <div class="name">chevron-bottom</div>
                    <div class="fontclass">#bcui-icon-chevron-bottom</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-computer-filled"></use>
                    </svg>
                    <div class="name">computer-filled</div>
                    <div class="fontclass">#bcui-icon-computer-filled</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-computer"></use>
                    </svg>
                    <div class="name">computer</div>
                    <div class="fontclass">#bcui-icon-computer</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-confirm"></use>
                    </svg>
                    <div class="name">confirm</div>
                    <div class="fontclass">#bcui-icon-confirm</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-disk"></use>
                    </svg>
                    <div class="name">disk</div>
                    <div class="fontclass">#bcui-icon-disk</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-copy"></use>
                    </svg>
                    <div class="name">copy</div>
                    <div class="fontclass">#bcui-icon-copy</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-hardware-filled"></use>
                    </svg>
                    <div class="name">hardware-filled</div>
                    <div class="fontclass">#bcui-icon-hardware-filled</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-expand"></use>
                    </svg>
                    <div class="name">expand</div>
                    <div class="fontclass">#bcui-icon-expand</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-error"></use>
                    </svg>
                    <div class="name">error</div>
                    <div class="fontclass">#bcui-icon-error</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-full"></use>
                    </svg>
                    <div class="name">full</div>
                    <div class="fontclass">#bcui-icon-full</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-hardware"></use>
                    </svg>
                    <div class="name">hardware</div>
                    <div class="fontclass">#bcui-icon-hardware</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-info"></use>
                    </svg>
                    <div class="name">info</div>
                    <div class="fontclass">#bcui-icon-info</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-loading"></use>
                    </svg>
                    <div class="name">loading</div>
                    <div class="fontclass">#bcui-icon-loading</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-minus"></use>
                    </svg>
                    <div class="name">minus</div>
                    <div class="fontclass">#bcui-icon-minus</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-mirror"></use>
                    </svg>
                    <div class="name">mirror</div>
                    <div class="fontclass">#bcui-icon-mirror</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-nodes"></use>
                    </svg>
                    <div class="name">nodes</div>
                    <div class="fontclass">#bcui-icon-nodes</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-network-filled"></use>
                    </svg>
                    <div class="name">network-filled</div>
                    <div class="fontclass">#bcui-icon-network-filled</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-overview-filled"></use>
                    </svg>
                    <div class="name">overview-filled</div>
                    <div class="fontclass">#bcui-icon-overview-filled</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-overview"></use>
                    </svg>
                    <div class="name">overview</div>
                    <div class="fontclass">#bcui-icon-overview</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-network"></use>
                    </svg>
                    <div class="name">network</div>
                    <div class="fontclass">#bcui-icon-network</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-pencil"></use>
                    </svg>
                    <div class="name">pencil</div>
                    <div class="fontclass">#bcui-icon-pencil</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-refresh"></use>
                    </svg>
                    <div class="name">refresh</div>
                    <div class="fontclass">#bcui-icon-refresh</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-power-off"></use>
                    </svg>
                    <div class="name">power-off</div>
                    <div class="fontclass">#bcui-icon-power-off</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-plus"></use>
                    </svg>
                    <div class="name">plus</div>
                    <div class="fontclass">#bcui-icon-plus</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-search"></use>
                    </svg>
                    <div class="name">search</div>
                    <div class="fontclass">#bcui-icon-search</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-security-filled"></use>
                    </svg>
                    <div class="name">security-filled</div>
                    <div class="fontclass">#bcui-icon-security-filled</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-stop"></use>
                    </svg>
                    <div class="name">stop</div>
                    <div class="fontclass">#bcui-icon-stop</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-security"></use>
                    </svg>
                    <div class="name">security</div>
                    <div class="fontclass">#bcui-icon-security</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-start"></use>
                    </svg>
                    <div class="name">start</div>
                    <div class="fontclass">#bcui-icon-start</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-setting-filled"></use>
                    </svg>
                    <div class="name">setting-filled</div>
                    <div class="fontclass">#bcui-icon-setting-filled</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-setting"></use>
                    </svg>
                    <div class="name">setting</div>
                    <div class="fontclass">#bcui-icon-setting</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-storage-filled"></use>
                    </svg>
                    <div class="name">storage-filled</div>
                    <div class="fontclass">#bcui-icon-storage-filled</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-terminal"></use>
                    </svg>
                    <div class="name">terminal</div>
                    <div class="fontclass">#bcui-icon-terminal</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-storage"></use>
                    </svg>
                    <div class="name">storage</div>
                    <div class="fontclass">#bcui-icon-storage</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-times"></use>
                    </svg>
                    <div class="name">times</div>
                    <div class="fontclass">#bcui-icon-times</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-triangle-bottom"></use>
                    </svg>
                    <div class="name">triangle-bottom</div>
                    <div class="fontclass">#bcui-icon-triangle-bottom</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-trash"></use>
                    </svg>
                    <div class="name">trash</div>
                    <div class="fontclass">#bcui-icon-trash</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#bcui-icon-triangle-top"></use>
                    </svg>
                    <div class="name">triangle-top</div>
                    <div class="fontclass">#bcui-icon-triangle-top</div>
                </li>
            
        </ul>


        <h2 id="symbol-">symbol引用</h2>
        <hr>

        <p>这是一种全新的使用方式，应该说这才是未来的主流，也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
        这种用法其实是做了一个svg的集合，与另外两种相比具有如下特点：</p>
        <ul>
          <li>支持多色图标了，不再受单色限制。</li>
          <li>通过一些技巧，支持像字体那样，通过<code>font-size</code>,<code>color</code>来调整样式。</li>
          <li>兼容性较差，支持 ie9+,及现代浏览器。</li>
          <li>浏览器渲染svg的性能一般，还不如png。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-symbol-">第一步：引入项目下面生成的symbol代码：</h3>
        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre>
        <h3 id="-css-">第二步：加入通用css代码（引入一次就行）：</h3>
        <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt;
.icon {
   width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em;
   vertical-align: <span class="hljs-number">-0.15</span>em;
   fill: currentColor;
   overflow: hidden;
}
&lt;<span class="hljs-regexp">/style&gt;</span></code></pre>
        <h3 id="-">第三步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span class="xml"><span class="hljs-tag">
  &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span class="hljs-string">"#bcui-icon-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">use</span>&gt;</span>
</span>&lt;<span class="hljs-regexp">/svg&gt;
        </span></code></pre>
    </div>
</body>
</html>
